package com.jzo2o.customer.controller.worker;

import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditAddReqDTO;
import com.jzo2o.customer.model.dto.response.RejectReasonResDTO;
import com.jzo2o.customer.service.IWorkerCertificationAuditService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @Author:zhq
 * @Date: 2025/09/17 15:36
 * @Description:
 */
@RestController
@RequestMapping("/worker/worker-certification-audit")
public class WorkerCertificationAuditController {
    @Resource
    private IWorkerCertificationAuditService workerCertificationAuditService;

    @PostMapping()
    public void realNameAuthentication(@RequestBody WorkerCertificationAuditAddReqDTO workerCertificationAuditAddReqDTO){
        workerCertificationAuditService.realNameAuthentication(workerCertificationAuditAddReqDTO);
    }

    @GetMapping("/rejectReason")
    public RejectReasonResDTO rejectReason(){
        return  workerCertificationAuditService.rejectReason();
    }

}
